package com.cpit.qualitycontrol.dao;


import com.cpit.qualitycontrol.entity.Project;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ProjectRepository  extends JpaRepository<Project, Long> {
    Project save(Project device);
    Project findByName(String name);
    Project findById(Long id);
    Page<Project> findByNameContaining(String name, Pageable pageable);
    Page<Project> findAll(Pageable pageable);
    Page<Project> findAll(Specification<Project> var1, Pageable var2);
    long countAllByProductLineId(Long productLineId);
}
